<?php 

/**
 * NOTICE OF LICENSE
 *
 * THIS SOURCE FILE IS PART OF EVEBIT'S PRIVATE PROJECT.
 * 
 * DO NOT USE THIS FILE IN OTHER PLACE.
 *
 * @package     App_Backend
 * @subpackage  View
 * @author      Cheng Wei <berlios.o@gmail.com>
 * @version     $$Id: error.phtml 20 2010-12-18 09:35:07Z cheng.wei $$
 */

// TODO: change it to a special layout

if ($this->code == 404) :
?>
<div class="page-not-found">
  <h2><?php echo $this->__('Page not found') ?></h2>
</div>
<?php else:?>
<div class="error-detail">
  <h2><?php echo $this->message ?></h2>

  <h3>Exception information:</h3>
  <p>
      <b>Message:</b> <?php echo $this->exception->getMessage() ?>
  </p>

  <h3>Stack trace:</h3>
  <pre>
  	<?php echo $this->exception->getTraceAsString() ?>
  </pre>
</div>
<?php endif;?>